import myaxios from "../MyAxios";
import BASEURL from "../BaseUrl";

const TCHYURL = BASEURL.TCHYURL;
const selfOperatedSettingsApi = {
  //  自营货主列表
  //
  getSelfCargoOwnerList(params) {
    let url = TCHYURL + "/supplier/selfSupportOwner/list";
    return myaxios.get(url, params);
  },
  //新增基本信息
  addBasicInfo(params) {
    let url = TCHYURL + "/supplier/selfSupportOwner/insertBasicInfo";
    return myaxios.post(url, params);
  },
  //编辑基本信息
  emitBasicInfo(params) {
    let url = TCHYURL + "/supplier/selfSupportOwner/updateBasicInfo";
    return myaxios.post(url, params);
  },

  //新增基本信息 校验
  auditBasicInfo(params) {
    let url = TCHYURL + "/supplier/selfSupportOwner/check_owner";
    return myaxios.get(url, params);
  },
  //删除自营货主列表项
  deleteCargoOwnerItem(params) {
    let url = TCHYURL + "/supplier/selfSupportOwner/deleteBasicInfo";
    return myaxios.get(url, params);
  },

  //新增线路信息
  addRouteInfo(params) {
    let url = TCHYURL + "/supplier/selfSupportOwner/insertLine";
    return myaxios.post(url, params);
  },
  //新增合同信息
  addContractInfo(params) {
    let url = TCHYURL + "/supplier/selfSupportOwner/insertContractInfo";
    return myaxios.post(url, params);
  },
  //合同信息列表 回填
  getContractInfo(params) {
    let url = TCHYURL + "/supplier/selfSupportOwner/listContract";
    return myaxios.get(url, params);
  },

  //基本信息详情
  getBasicDetails(params) {
    let url = TCHYURL + "/supplier/selfSupportOwner/basicDetail";
    return myaxios.get(url, params);
  },
  //修改合同信息

  emitContractInfo(params) {
    let url = TCHYURL + "/supplier/selfSupportOwner/updateContractInfo";
    return myaxios.post(url, params);
  },
  //删除合同信息
  deleteContractInfo(params) {
    let url = TCHYURL + "/supplier/selfSupportOwner/deleteContractInfo";
    return myaxios.get(url, params);
  },
  //合同信息 详情
  ContractDetails(params) {
    let url = TCHYURL + "/supplier/selfSupportOwner/contractInfoDetail";
    return myaxios.get(url, params);
  },
  //合同唯一校验
  contractUnique(params) {
    let url = TCHYURL + "/supplier/contract/checkContract";
    return myaxios.get(url, params);
  },
  //线路详情回显
  getRouteDetails(params) {
    let url = TCHYURL + "/supplier/selfSupportOwner/echoLine";
    return myaxios.get(url, params);
  },
  //线路信息列表 回填
  getRouteInfo(params){
    let url = TCHYURL + "/supplier/selfSupportOwner/echoLineList";
    return myaxios.get(url, params);
  },
  //删除线路信息
  deleteRouteItem(params){
    let url = TCHYURL + "/supplier/selfSupportOwner/deleteLines";
    return myaxios.get(url, params);
  },
  //修改线路
  UpdateRoute(params){
    let url = TCHYURL + "/supplier/selfSupportOwner/updateLine";
    return myaxios.post(url, params);
  },
  //项目名称 校验唯一
  checkProjectName(params){
    let url = TCHYURL + "/supplier/selfSupportOwner/checkProjectName";
    return myaxios.get(url, params);
  }
  

 
  

};
export default selfOperatedSettingsApi;
